package com.aloda.ojjudge.properties;

import com.aloda.ojjudge.pojo.enums.CodeSandboxEnum;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @Author aloda
 * @Date 2025/4/29 15:40
 */
@Data
@Component
@ConfigurationProperties(prefix = "oj.codesandbox")
public class CodeSandboxProperties {

    /**
     * 使用代码沙箱的类型
     */
    private CodeSandboxEnum codeSandboxType;

    /**
     * 远程代码沙箱的地址
     */
    private String url;

    /**
     * 权限校验请求头名称
     */
    private String authHeader;

    /**
     * 权限校验请求头值
     */
    private String authHeaderValue;
}
